package com.nlp.visualization.service;


import com.nlp.visualization.pojo.NLP.discourse.WordFrequencyTable;
import com.nlp.visualization.pojo.NLP.discourse.WordsCloudOption;

import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface IDataDiscourseService {

    File wordClould(List texts, WordsCloudOption option) throws IOException;

    WordFrequencyTable wordFrequencyCount(List texts) throws Exception;

    List wordNamedEntity(String text) throws Exception;

    List getKeywords(String text, int count) throws Exception;

    List mapRemark(String text) throws Exception;

    List getAbstract(String text, int count) throws Exception;

    Map getTheme(String text);

    Map getEmotion(String text);

    List word2Vec(String text);

    Map sensitiveWord(String text, int matchType);

    Map textNearCalculate(String text_A, String... texts);

    Map getBayesClassifer(String modelTag, List readyClassifyText);

    String traniBayesClassfier(Map map);

}
